package com.nc.shop.service.feign;

import com.plug.result.RetResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 创建人:    xvzhe
 * 创建时间:
 * 修改时间:
 * 版本:      v1.0
 */
@FeignClient("oauthuser")
public interface UserFeign {
    @GetMapping("UsersController/user/details/{userId}")
    RetResult userDetail(@PathVariable String userId);

    @GetMapping("UsersController/user/{token}")
    RetResult getUserByToken(@PathVariable("token") String token);
}
